package com.easy.common.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easy.common.bean.ConcertBean;

import java.util.List;

public interface IConcertService extends IService<ConcertBean> {

    ConcertBean getConcertById(Integer id);
    ConcertBean getConcertByTitle(String title);
    // 分页查询通过场地ID
    IPage<ConcertBean> getPageByVenueId(Integer venueId, IPage<ConcertBean> page);
    Integer addConcert(ConcertBean concertBean);
    Integer updateConcert(ConcertBean concertBean);
    Integer deleteConcert(Integer id);
    Integer revertConcert(Integer id);
    List<ConcertBean> getAll(ConcertBean concertBean);
    IPage<ConcertBean> getPage(ConcertBean concertBean,IPage<ConcertBean> page);

    Boolean startPrehead (Integer id);

    // 根据ID查询演唱会并关联场地信息
    ConcertBean getConcertWithVenue(Integer id);

    IPage<ConcertBean> getPageWithVenue(Page<ConcertBean> page);

    Page<ConcertBean> listByMultiCondition(String keyword, String city, Long startDate, Long endDate, Long current, Long size);

    List<ConcertBean> searchConcert(String keyword);

    List<ConcertBean> getRecommendConcert();

}










































